import request from "@/utils/request";
// 品牌列表
export function brandList(query) {
  return request({
    url: "/commodity/brand/list",
    method: "get",
    params: query,
  });
}
//更新排序
export function changeSort(data) {
  return request({
    url: "/commodity/brand/changeSort",
    method: "put",
    data,
  });
}
//是否再首页展示
export function handleShowIndex(data) {
  return request({
    url: "/commodity/brand/isShowIndex",
    method: "put",
    data,
  });
}
//是否展示
export function changeShow(data) {
  return request({
    url: "/commodity/brand/isShow",
    method: "put",
    data,
  });
}
//同步

export function synProductBrand() {
  return request({
    url: "/commodity/brand/synProductBrand",
    method: "get",
  });
}
//设置二级收款账户
export function setSecondaryAccount(data) {
  return request({
    url: "/commodity/brand/setMallBrandSecond",
    method: "post",
    data,
  });
}
